package cn.wolfcode.luowowo.member.mapper;

import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserInfo record);

    UserInfo selectByPrimaryKey(Long id);

    List<UserInfo> selectAll();

    int updateByPrimaryKey(UserInfo record);

    int selectByPhone(String phone);

    UserInfo selectByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password);

    List<UserInfo> selectIdol (Long[] idolId);

    void updatePassword(@Param("phone") String phone, @Param("password") String password);

    void updatePhoneById(@Param("id") Long id,@Param("phone") String phone);

    void updateState(UserInfo userInfo);
}